//
//  NotificationViewCell.m
//  JiongTu
//
//  Created by 杨璟 on 16/4/28.
//  Copyright © 2016年 YSKJ. All rights reserved.
//

#import "NotificationViewCell.h"

#import "JTPushNotification.h"

@interface NotificationViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *alertLabel;

@property (weak, nonatomic) IBOutlet UIButton *payButton;

@end

@implementation NotificationViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setOneNotification:(JTPushNotification *)oneNotification {
    _oneNotification = oneNotification;
    
    self.alertLabel.text = oneNotification.alertInfo;
    if ([oneNotification.identity isEqualToString:@"提醒"] || [oneNotification.identity isEqualToString:@""]) {
        self.payButton.hidden = YES;
    } else if ([oneNotification.identity isEqualToString:@"司机"]) {
        self.payButton.hidden = NO;
    } else if([oneNotification.identity isEqualToString:@"乘客"]) {
        self.payButton.hidden = YES;
    }
    
}

@end
